#include "RampArmControl.h"
#include "WPILib.h"

RampArmControl::RampArmControl() {
	// Use requires() here to declare subsystem dependencies
	Requires(rampArm);
}

// Called just before this Command runs the first time
void RampArmControl::Initialize() {
}

// Called repeatedly when this Command is scheduled to run
void RampArmControl::Execute() {
	
	float s = oi->getRampArmSpeed();
	
	SmartDashboard::Log(s, "Ramp Arm Speed");
	SmartDashboard::Log(rampArm->isArmInForwardPosition(), "Ramp Arm Forward Max");
	SmartDashboard::Log(rampArm->isArmInBackwardPositioin(), "Ramp Arm Backward Max");
	
	rampArm->moveArm(s);
}

// Make this return true when this Command no longer needs to run execute()
bool RampArmControl::IsFinished() {
	return false;
}

// Called once after isFinished returns true
void RampArmControl::End() {
	
}

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void RampArmControl::Interrupted() {
}
